<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<?php
$arr = array("foo" => "bar", 12 => true);

echo $arr["foo"]; // bar
echo $arr[12];    // 1
?>

<?php
$arr = array("somearray" => array(6 => 5, 13 => 9, "a" => 42));

echo $arr["somearray"][6];    // 5
echo $arr["somearray"][13];   // 9
echo $arr["somearray"]["a"];  // 42
?>

<?php


// This array is the same as ...
$arr = array(5 => 43, 32, 56, "b" => 12);
foreach ($arr as $i => $value) {
  print($arr[$i] . ',' . $value . ',');
}
// ...this array
array(5 => 43, 6 => 32, 7 => 56, "b" => 12);
?>
